tools: Add device-path command to convert SBDF into device path.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 6 Apr 2009 12:52:56 +0000 (13:52 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 6 Apr 2009 12:52:56 +0000 (13:52 +0100)
commitfdd33002ee45be20b317cad3e165714d14009390
treeea4433999a8e128215d2c0b071c3bab0ac795428
parentb812d1ddc4f23d3781fefff6fdcac9d247ab7ebb
tools: Add device-path command to convert SBDF into device path.

'SBDF' format is "[SEG#:]BUS#:DEV#.FUNC#"
  ex) 0000:0a:1f.3
Device path format is "HID[:UID]-DEV#.FUNC#[-DEV#.FUNC#[...]]"
  ex) PNP0A08:0-2.0-0.0

The command can be executed as follows.

# device_path 0a:1f.3
PNP0A08:0-2.0-0.0

Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
Makefile
tools/misc/Makefile
tools/misc/device-path [new file with mode: 0644]